Python Concurrency with asyncio by Matthew Fowler
Author:Matthew Fowler [Fowler, Matthew]
Language: eng
Format: epub, pdf
Publisher: Manning Publications Co.
Published: 2022-02-12T23:00:00+00:00
7.4 Event loops in separate threads
We have mainly focused on building applications that are completely implemented from the bottom up with coroutines and asyncio. When weâve had any work that does not fit within a single-threaded concurrency model, we have run it inside of threads or processes. Not all applications will fit into this paradigm. What if weâre working in an existing synchronous application and we want to incorporate asyncio?
One such situation where we can run into this scenario is building desktop user interfaces. The frameworks to build GUIs usually run their own event loop, and the event loop blocks the main thread. This means that any long-running operations can cause the user interface to freeze. In addition, this UI event loop will block us from creating an asyncio event loop. In this section, weâll learn how to use multithreading to run multiple event loops at the same time by building a responsive HTTP stress-testing user interface in Tkinter.
Download
Python Concurrency with asyncio by Matthew Fowler.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7476)
Robo-Advisor with Python by Aki Ranin(7356)
Offensive Shellcode from Scratch by Rishalin Pillay(5969)
Ego Is the Enemy by Ryan Holiday(4900)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(4746)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4421)
Python for ArcGIS Pro by Silas Toms Bill Parker(4047)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3751)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3466)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3265)
Speed Up Your Python with Rust by Maxwell Flitton(3221)
Liar's Poker by Michael Lewis(3197)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3182)
Extreme DAX by Michiel Rozema & Henk Vlootman(3158)
Agile Security Operations by Hinne Hettema(3110)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3101)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3073)
Cryptography Algorithms by Massimo Bertaccini(2989)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2970)
